package com.fyzk.random;

import com.fyzk.utils.LotteryIDUtils;

public class RandomFactory {
	
	public static RandomBase getRandom(int lotteryId){
		RandomBase random = null;
		switch (lotteryId) {
		case LotteryIDUtils.DLT_LOTTERY_ID_INT:
			random = new DLTRandom();
			break;
		case LotteryIDUtils.SSQ_LOTTERY_ID_INT:
			random = new SSQRandom();
			break;
		case LotteryIDUtils.PL3_LOTTERY_ID_INT:
			random = new PL3Random();
			break;
		case LotteryIDUtils.PL5_LOTTERY_ID_INT:
			random = new PL5Random();
			break;
		case LotteryIDUtils.QXC_LOTTERY_ID_INT:
			random = new QXCRandom();
			break;
		case LotteryIDUtils.QLC_LOTTERY_ID_INT:
			random = new QLCRandom();
			break;
		case LotteryIDUtils.FC3D_LOTTERY_ID_INT:
			random = new FC3DRandom();
			break;
		case LotteryIDUtils.SD11XUAN5_LOTTERY_ID_INT:
		case LotteryIDUtils.GD11XUAN5_LOTTERY_ID_INT:
		case LotteryIDUtils.XJ11XUAN5_LOTTERY_ID_INT:
			random = new Gp11xuan5Random();
			break;
		case LotteryIDUtils.CQSSC_LOTTERY_ID_INT:
			random = new SSCRandom();
			break;
		case LotteryIDUtils.KLSF_LOTTERY_ID_INT:
		case LotteryIDUtils.GDKLSF_LOTTERY_ID_INT:
			random = new KLSFRandom();
			break;
		case LotteryIDUtils.NXK3_LOTTERY_ID_INT:
		case LotteryIDUtils.ANHUIK3_LOTTERY_ID_INT:
		case LotteryIDUtils.JSK3_LOTTERY_ID_INT:
		case LotteryIDUtils.JLK3_LOTTERY_ID_INT:
		case LotteryIDUtils.GXK3_LOTTERY_ID_INT:
			random = new K3Random();
			break;
			case LotteryIDUtils.KLPK_LOTTERY_ID_INT:
				random = new KLPKRandom();
				break;
		
		}
		return random;
	}

}
